package com.viptail.xiaogouzaijia.view.base;


import android.os.Bundle;

import com.hannesdorfmann.mosby.mvp.MvpActivity;
import com.viptail.xiaogouzaijia.presenter.base.BaseRetrofitPresenter;

import butterknife.ButterKnife;


/**
 * Created by FROG on 2016/11/10.
 */

public abstract class BaseActivity<T> extends MvpActivity<BaseRetrofitView<T>, BaseRetrofitPresenter<T>> implements BaseRetrofitView<T> {
    abstract public int getContentId();

    abstract public void initView();

    abstract public void initData();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getContentId());
        ButterKnife.bind(this);
        initView();
        initData();
    }
}
